﻿/*
 * Created by SharpDevelop.
 * User: rogerio
 * Date: 12/10/2009
 * Time: 10:46 AM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using csharp.common;
using System.Drawing;
using System.Windows.Forms;
using ComponentFactory.Krypton.Toolkit;

namespace csharp.rad.pos
{
	/// <summary>
	/// Description of frmQuickSale.
	/// </summary>
	public partial class frmQuickSale : KryptonForm
	{
		public frmQuickSale()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
			//
			// TODO: Add constructor code after the InitializeComponent() call.
			//
		}		
		
		void KryptonButton2Click(object sender, EventArgs e)
		{
			frmDefaultSearch form = new frmDefaultSearch();
			
			form.setTable("employee join person on employee_person_id = person_id");
			Field field1 = new Field("id","id",0,false, false);
			form.addField(field1);
			
			Field field2 = new Field("code","Código");
			form.addField(field2);
			
			Field field3 = new Field("name","Nome",250);
			form.addField(field3);		
			
			form.ShowDialog();
		}
	}
}
